package com.yc.service;

import com.yc.bean.FoodTypeBean;
import com.yc.mapper.FoodTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zwei
 * @create 2024-10-07 15:11
 */
@Service
public class FoodTypeBizImpl implements FoodTypeBiz{
    private FoodTypeMapper foodTypeMapper;
    @Autowired
    public void setFoodTypeMapper(FoodTypeMapper foodTypeMapper) {
        this.foodTypeMapper = foodTypeMapper;
    }

    /**
     * 查询所有菜品类型
     * @return
     */
    @Override
    public List<FoodTypeBean> getFoodType() {
        List<FoodTypeBean> list = foodTypeMapper.selectList(null);
        return list;
    }
}
